import React, { Component } from 'react'
class Chuan extends Component {
    state={
        haha:88
    }
    cut = ()=>{
        console.log(555);
        
    }
// 父子传参方式
    render() { 
        console.log(this.props.name);
        
        return ( 
            <div>
               这里是传参
            </div>
         );
    }
}
 
export default Chuan;
